package com.hoshiicloud.goods.entity.spu;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * <p>
 * 扩展SPU
 * </p>
 *
 * @author zhangshuhu
 * @since 2019-06-04
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("ext_spu")
public class ExtSpu implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableField("id")
    private Long id;

    /**
    * spu id
    */
    @TableField("spu_id")
    private Long spuId;


    /**
    * 商品视频
    */
    @TableField("spu_video")
    private String spuVideo;


    /**
    * 图文描述
    */
    @TableField("spu_description")
    private String spuDescription;


    /**
    * 商品标题
    */
    @TableField("title")
    private String title;


    /**
    * 商品主图
    */
    @TableField("spu_image")
    private String spuImage;


    /**
    * 是否开票
    */
    @TableField("is_invoice")
    private Integer isInvoice;

    /**
     * 营销类目id
     */
    @TableField("market_categoryid")
    private Long marketCategoryid;


    /**
     * 类目描述
     */
    @TableField("category_describe")
    private String categoryDescribe;


    /**
    * 售后说明
    */
    @TableField("service_description")
    private String serviceDescription;


    /**
    * 属性
    */
    @TableField("extend_property")
    private String extendProperty;


    /**
    * 规格
    */
    @TableField("extend_spec")
    private String extendSpec;


    /**
     * 进口税承担方 1-买家 2-卖家
     */
    @TableField("customs_bear")
    private Integer customsBear;


    /**
    * 购买须知
    */
    @TableField("notice")
    private String notice;


    /**
    * 上架时间
    */
    @TableField("up_time")
    private LocalDateTime upTime;


    /**
    * 下架时间
    */
    @TableField("down_time")
    private LocalDateTime downTime;


    /**
    * 创建时间
    */
    @TableField("created_time")
    private LocalDateTime createdTime;


    /**
    * 修改时间
    */
    @TableField("updated_time")
    private LocalDateTime updatedTime;


    /**
    * 建立人
    */
    @TableField("created_by")
    private String createdBy;


    /**
    * 修改人
    */
    @TableField("updated_by")
    private String updatedBy;


    /**
    * 状态  0-档案 1-已审批 2-下架
    */
    @TableField("status")
    private Integer status;


    /**
    * 是否删除
    */
    @TableField("deleted")
    private Integer deleted;

    /**
     * 租户ID
     */
    @TableField("company_id")
    private Long companyId;

    /**
     * 平台ID
     */
    @TableField("platform_id")
    private Long platformId;

    /**
     * 店铺ID
     */
    @TableField("store_id")
    private Long storeId;

    /**
     * 横图
     */
    @TableField("h_image")
    private String hImage;

    /**
     * 竖图
     */
    @TableField("v_image")
    private String vImage;

    /**
     *  权重
     */
    @TableField("weight")
    private Long weight;

}
